package com.qumitech.visualnovel.pubdef.dto.skill;

import com.qumitech.visualnovel.component.annotation.ExcelAnnotation;

/**
 * SkillAdminExportDTO
 *
 * @author zhangbc
 * @version 1.0.0
 * @date 2020/8/25 19:19
 **/
public class SkillAdminExportDTO {

    private String id;
    @ExcelAnnotation("用户ID")
    private String uid;
    @ExcelAnnotation("昵称")
    private String userName;
    @ExcelAnnotation("性别")
    private String sex;
    @ExcelAnnotation("技能类型")
    private String category;
    private String skillId;
    @ExcelAnnotation("技能名称")
    private String skillName;
    @ExcelAnnotation("段位")
    private String levelName;
    @ExcelAnnotation("技能描述")
    private String note;
    @ExcelAnnotation("是否主技能")
    private String mainFlag;
    @ExcelAnnotation("接单状态")
    private String openFlag;
    @ExcelAnnotation("单价/钻")
    private String price;
    @ExcelAnnotation("单位")
    private String priceBase;
    @ExcelAnnotation("完成订单数")
    private String orderCount;
    @ExcelAnnotation("接单总收益")
    private String revenue;
    @ExcelAnnotation("技能评分")
    private String star;
    private String unacceptOrderCount;
    private String acceptOrderCount;
    private String appraiseCount;
    @ExcelAnnotation("认证时间")
    private String verifyTime;
    private String recommendScore;
    @ExcelAnnotation("是否禁止接单")
    private String forbidFlag;
    private String forbiddenState;

    public String getForbiddenState() {
        return forbiddenState;
    }

    public void setForbiddenState(String forbiddenState) {
        this.forbiddenState = forbiddenState;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPriceBase() {
        return priceBase;
    }

    public void setPriceBase(String priceBase) {
        this.priceBase = priceBase;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        String sexFlag = "0";
        if (sexFlag.equals(sex)) {
            this.sex = "女";
        } else {
            this.sex = "男";
        }
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        switch (category) {
            case "1":
                this.category = "游戏";
                break;
            case "2":
                this.category = "娱乐";
                break;
            default:
                this.category = "未定义";
        }
    }

    public String getSkillId() {
        return skillId;
    }

    public void setSkillId(String skillId) {
        this.skillId = skillId;
    }

    public String getSkillName() {
        return skillName;
    }

    public void setSkillName(String skillName) {
        this.skillName = skillName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getMainFlag() {
        return mainFlag;
    }

    public void setMainFlag(String mainFlag) {
        String flag = "1";
        if (flag.equals(mainFlag)) {
            this.mainFlag = "是";
        } else {
            this.mainFlag = "否";
        }
    }

    public String getOpenFlag() {
        return openFlag;
    }

    public void setOpenFlag(String openFlag) {
        String flag = "1";
        if (flag.equals(openFlag)) {
            this.openFlag = "开启接单";
        } else {
            this.openFlag = "关闭接单";
        }
    }

    public String getForbidFlag() {
        return forbidFlag;
    }

    public void setForbidFlag(String forbidFlag) {
        // 0-不禁止 1-禁止  2-永久禁止
        switch (forbidFlag) {
            case "0":
                this.forbidFlag = "未禁止";
                break;
            case "1":
                this.forbidFlag = "已禁止";
                break;
            case "2":
                this.forbidFlag = "永久禁止";
                break;
            default:
                this.forbidFlag = "未定义";
                break;
        }
    }

    public String getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(String orderCount) {
        this.orderCount = orderCount;
    }

    public String getUnacceptOrderCount() {
        return unacceptOrderCount;
    }

    public void setUnacceptOrderCount(String unacceptOrderCount) {
        this.unacceptOrderCount = unacceptOrderCount;
    }

    public String getAcceptOrderCount() {
        return acceptOrderCount;
    }

    public void setAcceptOrderCount(String acceptOrderCount) {
        this.acceptOrderCount = acceptOrderCount;
    }

    public String getStar() {
        return star;
    }

    public void setStar(String star) {
        this.star = star;
    }

    public String getAppraiseCount() {
        return appraiseCount;
    }

    public void setAppraiseCount(String appraiseCount) {
        this.appraiseCount = appraiseCount;
    }

    public String getRevenue() {
        return revenue;
    }

    public void setRevenue(String revenue) {
        this.revenue = revenue;
    }

    public String getVerifyTime() {
        return verifyTime;
    }

    public void setVerifyTime(String verifyTime) {
        this.verifyTime = verifyTime;
    }

    public String getRecommendScore() {
        return recommendScore;
    }

    public void setRecommendScore(String recommendScore) {
        this.recommendScore = recommendScore;
    }

    @Override
    public String toString() {
        return super.toString();
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }
}
